import FormItem from "antd/es/form/FormItem";
import TextArea from "antd/es/input/TextArea";
import {TextAreaProps} from "./dev.tsx";
import {removeSetter} from "../../../utils/removeSetter.ts";

const TextAreaProd = (props:TextAreaProps) => {
    const { styles} = props
    const ComponentProps = removeSetter({...props},["children","parentId"])

    return (
        <div style={styles}>
            <FormItem>
                <FormItem label={props.label} name={props.name} rules={props.rule} style={{margin: "0",...styles}}>
                    <TextArea {...ComponentProps} />
                </FormItem>
            </FormItem>
        </div>

    );
};

export default TextAreaProd;